//
//  TravelTactic_MainModel_Big.m
//  BTRIP
//
//  Created by Rain on 15/11/13.
//  Copyright © 2015年 johnbk. All rights reserved.
//

#import "TravelTactic_MainModel_Big.h"
#import "TravelTactic_MainModel.h"

@implementation TravelTactic_MainModel_Big


- (void)setValue:(id)value forKey:(NSString *)key {
    
    if ([key isEqualToString:@"destinations"]) {
        NSMutableArray *arr = [NSMutableArray array];
        for (NSDictionary *tempDic in value) {
            TravelTactic_MainModel *smallModel = [[TravelTactic_MainModel alloc] init];
            [smallModel setValuesForKeysWithDictionary:tempDic];
            [arr addObject:smallModel];
            [smallModel release];
        }
        self.destinationsArr = arr;
        [arr autorelease];
    } else {
        [super setValue:value forKey:key];
    }
    
}


@end
